package com.xingkeduo.service.impl;

import com.xingkeduo.dao.operation.TShopsDaysMapper;
import com.xingkeduo.model.po.TShopsDays;
import com.xingkeduo.service.ShopDayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Author: 中文输入法发挥不稳定的刘川
 * @Date: 19-3-19 下午7:37
 */
@Service
public class ShopDayServiceImpl implements ShopDayService {

    @Autowired
    TShopsDaysMapper shopsDaysMapper;

    @Override
    public TShopsDays getShopDayPlanByShopId(Long shopId, String day) {
        return shopsDaysMapper.selectTimeByDayIdsAndStoreId(shopId,day);
    }

    @Override
    public List<TShopsDays> getShopDayListByShopId(Long shopId) {
        return shopsDaysMapper.getShopDayListByShopId(shopId);
    }
}
